fixed stack over flow