cleaned up code for cob spec