removed std namespace and added endif