Writing Stories

How is it that I can form a masterpiece in my head, but when faced with writing it down, I just can’t? Sometimes I get wayyy too overwhelmed with writing, and end up messing everything up for myself.