cleanup readable logic