made ios view method more usefull