put functionality was buggy. fixed\!