added answer checking