convert screenWidth parameters into numbers
added test coverage