fixed bug
fixed bug in error checking for annotation step