added some missing semicolons (strangely did not affect functionality)