fixed angle change bug and other minor changes