prefixed private functionality
rearranged FS function order