working on not writing to the database