trying to iron out bugs