fixed -s function