refactor by css position