made changes
added branch method
made changes