added slots calculation