added boolean parse function