boundaries checking fix..need to fix camera