added test
bug fix