If you can't change any other component, for temp you need to ensure the replacement is compatible with and delivers a very similar chainline with the existing bottom bracket. Also if the replacement's largest and smallest rings do not have the same number of teeth as the existing, you might end up having to change chain, front or rear mech to match.