screen size can be given as parameter