fixed a few bugs, still doesn't exactly work