formatting for ios as well