updating bug in navigation method