updated for smaller devices