fixes for the mobile part
handling input array