fixing bugs and making specs