refactor entry to bin to obey convension