moved stack model to heap