seperated functions, ready to add Notpad functionallity.