add support for apps of different size