reorganize functions and placeholders