keep resource size fixed