removed function keyword, added format document