fixed almost everything

just need to refactor and fix seed code