udpated nav code again