removed $ prefix on device size variables - $ normally implies a class object