added ami's code

should raise the error instead of having a bool signiture