some code for story